package com.zzyl.service;

import com.aliyun.iot20180120.models.QueryDevicePropertyStatusResponseBody;
import com.zzyl.base.PageResponse;
import com.zzyl.dto.DeviceDto;
import com.zzyl.dto.DevicePageQueryDto;
import com.zzyl.vo.DeviceDataVo;
import com.zzyl.vo.ProductVo;
import com.zzyl.vo.retreat.DeviceVo;

import java.util.List;
import java.util.Map;

public interface DeviceService {
    void getProductToRedis();

    List<ProductVo> getAllProduct();

    void addDevice(DeviceDto dto);

    PageResponse<DeviceDataVo> pageDevice(
            Integer pageNum,
            Integer pageSize,
            String deviceName,
            Integer locationType,
            String productKey
    );

    DeviceVo getDeviceDetailByIotId(DeviceDto deviceDto);

   QueryDevicePropertyStatusResponseBody.QueryDevicePropertyStatusResponseBodyData queryDevicePropertyStatus(DeviceDto deviceDto);

    Map<String, String> getModel(DeviceDto deviceDto);

    void update(DeviceDto deviceDto);

    void deleteDevice(DeviceDto deviceDto);
}
